import faulthandler
faulthandler.enable()
import pybullet as p
import time
import pybullet_data
p.connect(p.GUI,options="--opengl2")#or p.DIRECT for non-graphical version

